// import config from '@adonisjs/core/services/config'

// import type { SignOptions } from 'jsonwebtoken'
// import { sign, verify } from 'jsonwebtoken'

// export function generateJwt(payload: AnyObj, options?: SignOptions) {
//   const secretOrPrivateKey = config.get('jwt.secretOrPrivateKey', '')
//   const signOptions = config.get('jwt.signOptions', {})
//   return sign(payload, secretOrPrivateKey, { ...signOptions, ...options })
// }

// export function verifyJwt(token: string) {
//   const secretOrPublicKey = config.get('jwt.secretOrPublicKey', '')
//   const verifyOptions = config.get('jwt.verifyOptions', {})
//   return verify(token, secretOrPublicKey, verifyOptions)
// }
